package com.example.mybatisplus.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 字段常量_代替魔法值
 *
 * @author 15625
 * @since 2021-02-22 09:32
 */
@SuppressWarnings(value = "unused")
public class FieldConstants {

    public static final String FIELD_HTTP = "http://";

    public static final String SERVER_PORT = "server.port";

    public static final String KNIFE4J_PRODUCTION = "knife4j.production";

    public static final String SWAGGER_THEME = "/doc.html";

    public static final String COLON = ":";

    /**
     * 用户信息 请求头名称
     */
    public static final String USER_INFO_HEADER_NAME = "User-Info";

    /**
     * 手机号前缀
     */
    public static final String PHONE_PREFIX = "+86";

    /**
     * 腾讯云短信发送返回结果
     */
    public static final String SEND_STATUS_SET = "SendStatusSet";

    public static final String OK = "Ok";

    public static final String CODE = "Code";

    public static final String MESSAGE = "Message";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * 名称
     */
    public static final List<String> NAME = Arrays.asList("name", "userName", "username", "realName", "realname", "nickName", "nickname");

    /**
     * 身份证
     */
    public static final List<String> CART = Arrays.asList("idCard", "idNumber", "cardNumber");

    /**
     * 密码
     */
    public static final List<String> PASSWORD = Arrays.asList("password", "passWord", "pwd", "pass");

    /**
     * 手机号
     */
    public static final List<String> PHONE = Arrays.asList("phone", "telephone", "mobile", "phoneNo", "tel");

    /**
     * size
     */
    public static final String SIZE = "size";

    /**
     * get
     */
    public static final String GET = "get";

}
